/* 整体容器样式 */
.container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

/* 标签样式 */
label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

/* 输入框样式 */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 输入框焦点样式 */
input:focus {
    outline: none;
    border-color: #4481eb;
    box-shadow: 0 0 0 3px rgba(68, 129, 235, 0.1);
}

/* 头像容器样式 */
.profile-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

/* 头像图片样式 */
.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 隐藏原生文件上传按钮 */
input[type="file"] {
    display: none;
}

/* 自定义文件上传按钮样式 */
.custom-file-upload {
    padding: 8px 20px;
    background: linear-gradient(-45deg, #4481eb 0, #04befe 100%);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 129, 235, 0.3);
}

.custom-file-upload:active {
    transform: translateY(0);
}

/* 提交按钮样式 */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(-45deg, #4481eb 0, #04befe 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 129, 235, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 禁用状态样式 */
input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 错误状态样式 */
.error input {
    border-color: #ff4d4f;
}

.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 20px;
    }

    .profile-img {
        width: 80px;
        height: 80px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* 输入框占位符样式 */
::placeholder {
    color: #999;
}

/* 必填字段标记 */
.required label::after {
    content: '*';
    color: #ff4d4f;
    margin-left: 4px;
}